
namespace Gltf
{
    public class ImageCesium
    {
        /**
           * @brief The width of the image in pixels.
           */
        public int width = 0;

        /**
         * @brief The height of the image in pixels.
         */
        public int height = 0;

        /**
         * @brief The number of channels per pixel.
         */
        public int channels = 4;

        /**
         * @brief The number of bytes per channel.
         */
        public int bytesPerChannel = 1;

        /**
         * @brief The raw pixel data.
         *
         * The pixel data is consistent with the
         * [stb](https://github.com/nothings/stb) image library.
         *
         * For a correctly-formed image, the size of the array will be
         * `width * height * channels * bytesPerChannel` bytes. There is no
         * padding between rows or columns of the image, regardless of format.
         *
         * The channels and their meaning are as follows:
         *
         * | Number of Channels | Channel Order and Meaning |
         * |--------------------|---------------------------|
         * | 1                  | grey                      |
         * | 2                  | grey, alpha               |
         * | 3                  | red, green, blue          |
         * | 4                  | red, green, blue, alpha   |
         */
       public byte[] pixelData;
    }
}
